<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>综合账单管理系统</title>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<script type="text/javascript" src="js/jquery/jquery-1.4.min.js"></script>
	<script type="text/javascript">
		function login(){
			var name = $("input[name='loginname']").val();
			var	pwd = $("input[name='password']").val();
			if (name.length > 0 && pwd.length > 0){
				document.forms["login_form"].submit();
			}else{
				$("#errormsg").html("请输入用户名或密码");
			}
		}
		$(document).keypress(function(e){
			if(e.keyCode==13){
				login();
			}
		});
		$().ready(function(){
			$("input[type!='button']").val("");		
		});
	</script>
	<link href="css/index.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body class="login-wrap c">
      <div class="login-box">
		<img src="images/login_01.gif"/>
		<img src="images/login_02.jpg"/>
		<form id="login_form" action="portal!login.action" method="post">
		<table class="c">
			<tr>
				<td colspan="2">
				<s:label name="errormsg" cssStyle="color:red;"/>
				</td>
			</tr>	
			<tr>
				<td>登录帐号：</td>
				<td><input id="loginname" name="loginname" type="text" maxlength="10" class="text" /></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><input name="password" type="password" maxlength="20" class="text" /></td>
			</tr>
			<tr>
				<td><span id="res"></span></td>
				<td class="r" style="text-align:right;"><input type="button" value="登陆" onclick="login();" class="btn"/></td>
			</tr>
		</table>
		</form>
  </div>
  </body>
</html>
